{% extends 'base_home.htm' %}

{% block middle %}
<div id="m1">
<div class="title1">yxh的私人便签</div>
<div class="tip">您共有<span id="num_mes">{{count}}</span>个便签。</div>
<table>
  <tbody id="tbody_mes">
	{%for note in note_li%}
	<tr class="mes_info" id="tr1_mes_{{note.key}}">
	  <td>#{{forloop.revcounter|add:offset}}&nbsp;
		<span class="time">{{note.publish_time|date:"Y-m-d H:i:s"}}</span>
	  </td>
	  {%if is_admin%}
	  <td width="7%">
		<a href="javascript:del_note('{{note.key}}')">
		  <img src="/static/images/del.jpg" title="删除"/>
		</a>
	  {%endif%} 
	</tr>
	<tr id="tr2_mes_{{note.key}}">
	  <td class="each_mes" {%if is_admin%}colspan="2"{%endif%}>{{note.content}}</td>
	</tr>
	{%endfor%}
  </tbody>
</table>
<!--分页-->
{%if pages_nums%}
<div id="pages_num">
  换页：
  {%for num in pages_nums%}
  <a href="../note?pageid={{num}}"
	 {%ifequal num pageid%}
	 class="a_noline">
	<strong>{{num}}</strong>
	{%else%}
	>
	{{num}}
	{%endifequal%}
  </a>
  {%if not forloop.last%}&nbsp;|&nbsp;{%endif%}
  {%endfor%}
</div>
{%endif%}

<div id="mes_produce">
    <form action="." method="post">
      <textarea id="write_mes" name="content" class="box_comment"></textarea>
      <p>
        <input type="submit" value=" 提  交 "/>
        <!--<input type="button" value="提交" onclick="submit_note()"/>-->
      </p>
    </form>
</div>
{% endblock %} 
